package com.ssm.blog.pojo;

import java.util.ArrayList;
import java.util.List;

public class TreeNode {
    private Integer id;//id
    private String text;//对应tree的text属性
    private TreeNodeAttribute attributes = new TreeNodeAttribute();//节点属性
    private List<TreeNode> children = new ArrayList<>();//子节点集合

    //gettet/setter方法略
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public List<TreeNode> getChildren() {
        return children;
    }

    public void setChildren(List<TreeNode> children) {
        this.children = children;
    }

    public TreeNodeAttribute getAttributes() {
        return attributes;
    }

    public void setAttributes(TreeNodeAttribute attributes) {
        this.attributes = attributes;
    }
}
